package com.lotusfall.api;

import com.lotusfall.pojo.Role;
import com.lotusfall.service.RoleService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService(version = "1.0")
public class ApiRoleServiceImpl implements ApiRoleService{
    @Autowired
    private RoleService roleService;

    @Override
    public List<Role> listRoleByUserid(Long userid) {
        return this.roleService.listRoleByUserid(userid);
    }
}
